package com.sang.helloworld.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
//自动装配:原理
public class HelloController {

    //接口:http://localhost:8080/hello
    @RequestMapping("/hello")
    public String hello() {
        //调用业务，接收前端传递的参数！
        return "hello world";
    }

}
